package com.cn.future_user_server.controller;

import com.cn.future_user_server.mapper.AccountManagementMapper;
import com.cn.future_user_server.pojo.AccountManagement;
import com.cn.future_user_server.service.impl.IsLoginImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {
    @Autowired
    private AccountManagementMapper accountManagementMapper;
    private IsLoginImpl isLoginImpl;
    @GetMapping("/test")
    public Object login(){

        AccountManagement accountManagement1 = accountManagementMapper.selectByPrimaryKey(2);
if(accountManagement1.getEmployeeId().equals(13)&& accountManagement1.getEmployeePwd().equalsIgnoreCase("wxx")){
    System.out.println("比对成功！");
}else {
    System.out.println("比对失败！");
}
        return accountManagement1;
    }
}
